package com.eastfair.projectcore.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author zjn
 * @since 2021-12-06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "AreaSaveDTO", description = "")
public class AreaSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    @Size(max = 38, message = "名称长度不能超过38")
    private String name;
    /**
     * 父级id
     */
    @ApiModelProperty(value = "父级id")
    private Long parentId;
    /**
     * 编码
     */
    @ApiModelProperty(value = "编码")
    @Size(max = 21, message = "编码长度不能超过21")
    private String code;
    /**
     * 1区县，2市，3省，4国家，5洲，6国家级区域，7省份级区域
     */
    @ApiModelProperty(value = "1区县，2市，3省，4国家，5洲，6国家级区域，7省份级区域")
    @Size(max = 32, message = "1区县，2市，3省，4国家，5洲，6国家级区域，7省份级区域长度不能超过32")
    private String level;
    /**
     * 邮编
     */
    @ApiModelProperty(value = "邮编")
    @Size(max = 10, message = "邮编长度不能超过10")
    private String postCode;
    /**
     * 手机区号
     */
    @ApiModelProperty(value = "手机区号")
    @Size(max = 10, message = "手机区号长度不能超过10")
    private String phoneCode;
    /**
     * 英文名称
     */
    @ApiModelProperty(value = "英文名称")
    @Size(max = 70, message = "英文名称长度不能超过70")
    private String enName;

}
